package com.example.logistics_oa.dubbo;

import com.example.comment_oa.dubbo.ChaGangWeiJinTieDubbo;
import com.example.comment_oa.pojos.JobMakeoffer;
import com.example.comment_oa.pojos.xinzi.JibenButiejisuan;
import com.example.comment_oa.pojos.xinzi.JibenKaoqinhesuan;
import com.example.comment_oa.pojos.xinzi.JibenXinzijisuan;
import com.example.logistics_oa.service.JibenButiejisuanService;
import com.example.logistics_oa.service.JibenKaoqinhesuanService;
import com.example.logistics_oa.service.JibenXinzijisuanService;
import com.example.logistics_oa.service.JobMakeofferService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;
import java.util.List;


@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class ChaGangWeiJinTieDubboImpl implements ChaGangWeiJinTieDubbo {

    @Resource
    JobMakeofferService jobMakeofferService;

    @Resource
    JibenXinzijisuanService jibenXinzijisuanService;

    @Resource
    JibenKaoqinhesuanService jibenKaoqinhesuanService;
    @Resource
    JibenButiejisuanService jibenButiejisuanService;

    @Override
    public List<JobMakeoffer> selectGangWeiJinTie(int jmoDepartmentid, int jmo_jobid) {
        return jobMakeofferService.selectGangWeiJinTie(jmoDepartmentid,jmo_jobid);
    }

    @Override
    public int insertAll(JibenXinzijisuan jibenXinzijisuan) {
        return jibenXinzijisuanService.insertAll(jibenXinzijisuan);
    }

    @Override
    public int insertAllKaoQin(JibenKaoqinhesuan jibenKaoqinhesuan) {
        return  jibenKaoqinhesuanService.insertAll(jibenKaoqinhesuan);
    }

    @Override
    public int insertAllBuTie(JibenButiejisuan jibenButiejisuan) {
        return jibenButiejisuanService.insertAllBuTie(jibenButiejisuan);
    }


}
